﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Basket.aspx.cs" Inherits="eCommerce.Site.Basket" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="contentmain">
        <h1>
            Basket</h1>
        <p>
            The items listed below have been added to your basket. Click checkout to proceed.</p>
        <asp:Panel ID="pnlError" runat="server" Visible="False" CssClass="errorheader">
            <asp:Label Font-Bold="false" ID='lblError' runat="server"></asp:Label>
        </asp:Panel>
        <div class="gridviewProducts">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True"
                OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                OnRowUpdating="GridView1_RowUpdating" CellPadding="4" ForeColor="#333333" GridLines="None"
                CssClass="gridtableWish" Width="655px">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="Basket">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="ButtonDelete" CommandName="DeleteList" CommandArgument='<%# Eval("ProductID")%>'
                                OnCommand="ButtonDeleteCommand" Text="Delete" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-CssClass="bigheader" HeaderText="">
                        <ItemTemplate>
                            <img src="product/<%# Eval("ProductImage") %>" height="50px" alt="<%# Eval("ProductName") %>" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderStyle-CssClass="bigName" HeaderText="Name">
                        <ItemTemplate>
                            <%# Eval("ProductName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Quantity">
                        <ItemTemplate>
                            <asp:Label ID="lblQty" Width="20px" runat="server" Text='<%# Eval("qty") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" Width="20px" runat="server" Text='<%# Eval("qty") %>'></asp:TextBox>
                            <asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("CategoryID") %>' />
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Price">
                        <ItemTemplate>
                            £<asp:Label ID="Label1" runat="server" Text='<%# Eval("price") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" CssClass="TableRow" />
                <EditRowStyle BackColor="#D1D1D1" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#434343" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#434343" Font-Bold="True" Height="25px" HorizontalAlign="Center"
                    ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#081439" />
            </asp:GridView>
            <div class="TotalAmount">
                £<asp:Literal ID="litTotalAmount" runat="server"></asp:Literal></div>
            <div class="Totaltxt">
                Total
            </div>
            <asp:Label ID="lblsubmit" runat="server"></asp:Label>
        </div>
        <div class="formbxbigger">
            <asp:LinkButton ID="imglnkbtnSearch" CssClass="btnClickBR" ToolTip="Proceed to Checkout"
                runat="server" OnClick="BtnProceedClick">Checkout</asp:LinkButton>
        </div>
    </div>
</asp:Content>
